package com.hospital;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//启用事务管理
@EnableTransactionManagement
//自动生成所有dao接口的实现类。
@MapperScan({"com.hospital.*.dao", "com.hospital.*.*.dao"})
@SpringBootApplication
public class HospitalJApplication {

	public static void main(String[] args) {
		
		
		
		try {
			SpringApplication.run(HospitalJApplication.class, args);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		
		
	}

}
